n = 8; %% number of muscle;
data = averagedata;%% data name;
%% set up time vector;
L = length(data);
time = (1:L) / 2000;
%% plot
figure;
for i = 1:n
    subplot(n,1,i);
    plot(time, data(:,i));
    xlabel('Time(s)');
    ylabel('Voltage(mv)');
    grid
    hold on
end
